/*
 * easysmtp - A simple C lib in Linux to help you send mails in an easy way
 * Copyright (C) 2012-2013, easysmtp developers and contributors
 *
 * easysmtp is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * easysmtp is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with easysmtp; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef _PROCESS_CHAIN_H_
#define _PROCESS_CHAIN_H_

#include "easysmtp.h"
#include "change64.h"

typedef int (*PF)(SMTP *, MAIL *);

extern int smtp_connect(struct sockaddr *sp, socklen_t slen,
		int nsec, SMTP *smtpr);
extern int exec_process(SMTP *smtpr, MAIL *mpr);
extern int pre_connect(SMTP *smtpr, struct sockaddr_in *server, int port);

#endif
